#ifndef WELDENDINSTRUCTIONLOGIC_H
#define WELDENDINSTRUCTIONLOGIC_H

#include "ioinstruction.h"
#include "programset.h"
#include "instructionEnum.h"
#include "robotio.h"
#include "GeneralDefine.h"

class ProgramEngine;

class WeldEndInstructionLogic
{
public:
    WeldEndInstructionLogic(QString configFilePathIn,int robotIdIn,ProgramSet* programSetIn,RobotIo* ioControllerIn,
                            ProgramEngine* programEngineIn);
public:
    E_PROGRAM_LOOP_RESULT startWeldEnd(int programNum,WeldEndInstruction weldEndInstruct);
private:
    int robotId;
    ProgramSet* programSet;
    RobotIo* ioController;
    ProgramEngine* programEngine;
    QString configFilePath;
};
#endif // WELDENDINSTRUCTIONLOGIC_H
